/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package test.util;

import fsm.Board;

/**
 *
 * @author mike.boddin
 */
public class Util {
    /**
     * makes what it seems to do
     * @param colours number of several colours (beginning with 0)
     */
    public static Board createRandomBoard(int width, int height, int colours){
        Board b = new Board(width, height);
        for(int i=0;i<width*height;i++){
            int rand = (int)(Math.random()*colours);
            b.setField(i, rand);
        }
        return b;
    }
}
